package com.ruoyi.project.gzbook.bookinfo.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 图书信息对象 dg_book_info
 *
 * @author mhg
 * @date 2021-10-16
 */
public class DgBookInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String bookName;

    /** 作者id */
    @Excel(name = "作者id")
    private Long authorId;

    /** 出版社id */
    @Excel(name = "出版社id")
    private Long publishId;

    /** 图书简介 */
    @Excel(name = "图书简介")
    private String descption;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imagePath;

    /** 分类目录id */
    @Excel(name = "分类目录id")
    private Long indexId;

    /** 折扣价 */
    @Excel(name = "折扣价")
    private BigDecimal discountPrice;

    /** 是否作者亲签版 */
    @Excel(name = "是否作者亲签版")
    private Long isSign;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public String getBookName()
    {
        return bookName;
    }
    public void setAuthorId(Long authorId)
    {
        this.authorId = authorId;
    }

    public Long getAuthorId()
    {
        return authorId;
    }
    public void setPublishId(Long publishId)
    {
        this.publishId = publishId;
    }

    public Long getPublishId()
    {
        return publishId;
    }
    public void setDescption(String descption)
    {
        this.descption = descption;
    }

    public String getDescption()
    {
        return descption;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setImagePath(String imagePath)
    {
        this.imagePath = imagePath;
    }

    public String getImagePath()
    {
        return imagePath;
    }
    public void setIndexId(Long indexId)
    {
        this.indexId = indexId;
    }

    public Long getIndexId()
    {
        return indexId;
    }
    public void setDiscountPrice(BigDecimal discountPrice)
    {
        this.discountPrice = discountPrice;
    }

    public BigDecimal getDiscountPrice()
    {
        return discountPrice;
    }
    public void setIsSign(Long isSign)
    {
        this.isSign = isSign;
    }

    public Long getIsSign()
    {
        return isSign;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bookName", getBookName())
                .append("authorId", getAuthorId())
                .append("publishId", getPublishId())
                .append("descption", getDescption())
                .append("price", getPrice())
                .append("imagePath", getImagePath())
                .append("indexId", getIndexId())
                .append("discountPrice", getDiscountPrice())
                .append("isSign", getIsSign())
                .append("createTime", getCreateTime())
                .toString();
    }
}
